<template>
  <a-spin :spinning="confirmLoading">
    <j-form-container :disabled="false">
      <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail">
        <a-row :gutter="24">
          <a-col :span="24">
            <a-form-model-item label="使用公里数" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="kilometers">
              <a-input-number
                v-model="model.kilometers"
                :precision="2"
                placeholder="请输入使用公里数"
              /> km
            </a-form-model-item>
          </a-col>
        </a-row>
      </a-form-model>
    </j-form-container>
  </a-spin>
</template>

<script>
import { httpAction, getAction } from '@/api/manage'
import { validateDuplicateValue } from '@/utils/util'
import SelectUserByDep from '@/views/scy/components/SelectUserByDep'
import SelectPersonInput from '@/views/scy/components/SelectPersonInput'
import SelectTeamInput from '@/views/scy/components/SelectTeamInput';

export default {
  name: 'ReturnCarForm',
  data() {
    return {
      model: {
      },
      labelCol:
        {xs: { span: 6 },
        sm: { span: 6 }
        },
      wrapperCol: {
        xs: { span: 18 },
        sm: { span: 18 },
      },
      confirmLoading: false,
      validatorRules: {
        kilometers: [
            { required: true, message: '请输入使用公里数!'},
        ]
      }
    }
  },

  created() {
  },

  methods: {
    async submitForm() {
      const that = this
      let isOk = false
      // 触发表单验证
      await this.$refs.form.validate((valid) => {
        if (valid) {
          isOk = true;
        }else {
          isOk = false;
        }
      })
      return isOk;
    }
  },
}
</script>
<style>
 * {
        -webkit-print-color-adjust: exact !important;   /* Chrome, Safari */
        color-adjust: exact !important;                 /*Firefox*/
   }

</style>